package org.wisdom.ab.domain.staff.entity;

import javax.persistence.Entity;

import org.springframework.core.annotation.Order;
import org.wisdom.data.jpa.entity.BaseEntity;

import lombok.*;

/**
 * 成员拥有的部门
 *
 * @author 张智研
 * @date 2022/05/16 08:29
 **/
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
public class AbStaffDepartment extends BaseEntity {
    /** 成员id */
    @Order(1)
    private String staffId;
    /** 部门id */
    @Order(2)
    private String deptId;
    /** 成员在本部门顺序 */
    @Order(3)
    private Integer order;
    /** 是否是本部门领导 */
    @Order(4)
    private Integer isLeader;
}
